#!usr/bin/env python  
# -*- coding:utf-8 -*-
""" 

"""
from django.urls import path, include
from .views import Index, AuthorArticle, Edit, ArticleDetail, ArticleCategory
from site_maps import sitemaps
from django.contrib.sitemaps.views import sitemap

urlpatterns = [
                  path('', Index.as_view(), name='article-index-view'),
                  path('author_article/<slug:author_name>', AuthorArticle.as_view(), name='article-author-view'),
                  path('article_detail/<int:article_id>.html', ArticleDetail.as_view(), name='article-detail-view'),
                  path('edit/<int:article_id>', Edit.as_view(), name='edit-view'),

                  path('article-category/<slug:category>', ArticleCategory.as_view(), name='article-category'),

                  path('sitemap.xml', sitemap, {'sitemaps': sitemaps},
                       name='django.contrib.sitemaps.views.sitemap'),
                  path(r'mdeditor/', include('mdeditor.urls'))
              ]
